imcontext: Drop GTK_MAX_COMPOSE_LEN
authorMatthias Clasen <mclasen@redhat.com>
Mon, 1 Feb 2021 17:28:40 +0000 (12:28 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Mon, 1 Feb 2021 17:31:23 +0000 (12:31 -0500)
Drop GTK_MAX_COMPOSE_LEN from docs. It is no longer
used by GTK at all.  We leave the define in place
for now, to avoid breaking 3rd party code that might
use it.

docs/reference/gtk/gtk4-sections.txt
gtk/gtkimcontextsimple.c
gtk/gtkimcontextsimple.h

index d51b9d0e9fecd56fd5d3275df25747aa00b236a5..302d1ad0be875a6865946b909435fa14c0388e88 100644 (file)
@@ -1831,7 +1831,6 @@ GtkIMContextSimple
 gtk_im_context_simple_new
 gtk_im_context_simple_add_table
 gtk_im_context_simple_add_compose_file
-GTK_MAX_COMPOSE_LEN
 <SUBSECTION Standard>
 GTK_IM_CONTEXT_SIMPLE
 GTK_IS_IM_CONTEXT_SIMPLE
index 9271277c07c564903dabff7ab462c1b3d189e9c5..bbd815e8ae8879240a541d9c05d1a8d4eb54734e 100644 (file)
@@ -1319,7 +1319,6 @@ gtk_im_context_simple_get_preedit_string (GtkIMContext   *context,
  * @context_simple: A #GtkIMContextSimple
  * @data: (array): the table
  * @max_seq_len: Maximum length of a sequence in the table
- *               (cannot be greater than #GTK_MAX_COMPOSE_LEN)
  * @n_seqs: number of sequences in the table
  *
  * Adds an additional table to search to the input context.
@@ -1339,7 +1338,6 @@ gtk_im_context_simple_add_table (GtkIMContextSimple *context_simple,
                                 int                 n_seqs)
 {
   g_return_if_fail (GTK_IS_IM_CONTEXT_SIMPLE (context_simple));
-  g_return_if_fail (max_seq_len <= GTK_MAX_COMPOSE_LEN);
 
   G_LOCK (global_tables);
 
index e25cd4d216a34e88849a8faf010eea2b93fa6df8..7bd4454b1c9d67af8c88d3ef1cc1ac4dbb250e0b 100644 (file)
 
 G_BEGIN_DECLS
 
-/**
- * GTK_MAX_COMPOSE_LEN:
- *
- * The maximum length of sequences in compose tables.
+/*
+ * No longer used by GTK, just left here on the off chance that some
+ * 3rd party code used this define.
  */
 #define GTK_MAX_COMPOSE_LEN 7